<template>
  <!-- :style="{'background': bgColor}" -->
  <el-button :type="type" :disabled="isclick">
    <svg-icon :icon-class="icon"></svg-icon>
    {{ title }}
  </el-button>
</template>

<script>
import SvgIcon from '@c/svg-icon'
export default {
  components: {
    SvgIcon,
  },
  props: {
    icon: {
      type: String,
      required: true,
    },
    title: {
      type: String,
      default: '',
    },
    type: {
      type: String,
      default: 'primary',
    },
    isclick: {
      isclick: Boolean,
      required: false,
    },
    bgColor: {
      bgColor: String,
      required: false,
    },
  },
}
</script>

<style lang="scss" scoped></style>
